import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Index from "../views/pub/admin/Index.vue";
import Teacher from "../views/pub/admin/Teacher.vue";
import Student from "../views/pub/admin/Student.vue";
import Login from "../views/Login.vue";
import Pay from "../views/pub/admin/Pay.vue";
import Goods from "../views/pub/admin/Goods.vue";
import TeacherIndex from "../views/pub/teacher/TeacherIndex.vue";
import StudentT from "../views/pub/teacher/StudentT.vue";
import NoticeT from "../views/pub/teacher/NoticeT.vue";
import PayT from "../views/pub/teacher/PayT.vue";
import Freshman from "../views/freshman/student/Freshman.vue";
import AdmissionNotice from "../views/freshman/student/AdmissionNotice.vue";
import Profile from "../views/freshman/student/Profile.vue";
import AttendT from "../views/pub/teacher/AttendenceT.vue";
import MessageT from "../views/pub/teacher/MessageT.vue";
import CourseT from "../views/pub/teacher/CourseT.vue";
import Classroom from "../views/classroom/Classroom.vue";
import ClassroomIndex from "../views/classroom/ClassroomIndex.vue";
import Sign from "../views/classroom/Sign.vue";
import Choose from "../views/classroom/Choose.vue";
import Course from "../views/classroom/Course.vue";
import Message from "../views/classroom/Message.vue";
import Detail from "../views/classroom/Detail.vue";
import canteenindex from "../views/canteen/home/canteenindex.vue";
import canHome from "../views/canteen/home/canHome.vue";
import cart from "../views/canteen/home/cart.vue";
import order from "../views/canteen/home/order.vue";
import cpublic from "../views/canteen/home/Cpublic.vue";
import Mycanteen from "../views/canteen/home/Mycanteen.vue";
import mallindex from "../views/canteen/mall/mallindex.vue";
import Canmall from "../views/canteen/mall/Canmall.vue";
import MallOrder from "../views/canteen/mall/MallOrder.vue";
import MyMall from "../views/canteen/mall/MyMall.vue";
import MallNotice from "../views/canteen/mall/MallNotice"
import Work from "../views/canteen/mall/Work"
import Websocket from "@/views/canteen/home/Websocket";
import settlement from "../views/canteen/home/settlement"
import AddressDetail from "@/views/canteen/home/AddressDetail";
import Address from "../views/canteen/home/Address"
import canDish from "../views/canteen/home/canDish"
import AdminIndex from "../views/pub/admin/AdminIndex.vue";
import DetailT from "../views/pub/teacher/DetailT";
import CourseManage from "../views/pub/admin/CourseManage";
import Amusement from "@/views/amusement/Amusement.vue";
import Singinghome from "@/views/amusement/club/singclubs/Singinghome.vue";
import Dancehome from "@/views/amusement/club/danceclubs/Dancehome.vue";
import Sporthome from "@/views/amusement/club/sportclubs/Sporthome.vue";
import ShowUserMessage from "@/views/amusement/ShowUserMessage.vue";
import Singclub1 from "@/views/amusement/club/singclubs/clubdetail/Singclub1.vue";
import Singclub2 from "@/views/amusement/club/singclubs/clubdetail/Singclub2.vue";
import Singclub3 from "@/views/amusement/club/singclubs/clubdetail/Singclub3.vue";
import Danceclub1 from "@/views/amusement/club/danceclubs/clubdetail/Danceclub1.vue";
import Danceclub2 from "@/views/amusement/club/danceclubs/clubdetail/Danceclub2.vue";
import Danceclub3 from "@/views/amusement/club/danceclubs/clubdetail/Danceclub3.vue";
import Sportclub1 from "@/views/amusement/club/sportclubs/clubdetail/Sportclub1.vue";
import Sportclub2 from "@/views/amusement/club/sportclubs/clubdetail/Sportclub2.vue";
import Sportclub3 from "@/views/amusement/club/sportclubs/clubdetail/Sportclub3.vue";
import ClubMemberMain from "@/views/amusement/club/clubmanage/ClubMemberMain.vue";
import WatchMember from "@/views/amusement/club/clubmanage/WatchMember.vue";
import SignMember from "@/views/amusement/club/clubmanage/SignMember.vue";
import WatchNotice from "@/views/amusement/club/clubmanage/WatchNotice.vue";
import ManageNotice from "@/views/amusement/club/clubmanage/ManageNotice.vue";
import JudgeNotice from "@/views/amusement/club/clubmanage/JudgeNotice.vue";
import Stream from "../views/freshman/student/Stream.vue";
import GoodsT from "../views/pub/teacher/GoodsT.vue";
import Dept from "../views/pub/admin/Dept.vue";
import Dormitory from "../views/pub/admin/Dormitory.vue";
import Arrival from "../views/pub/admin/Arrival.vue";
import Notice from "../views/pub/admin/Notice.vue";
import AddNotice from "../views/pub/teacher/AddNotice.vue";
import Search from "../views/freshman/student/Search.vue";
import Amall from "../views/pub/admin/Amall.vue";
import Enroll from "../views/pub/admin/Enroll.vue";
import Dishes from "../views/pub/admin/Dishes.vue";
import Adish from "../views/pub/admin/Adish.vue";
import CourseH from "../views/pub/admin/CourseH.vue";
import CourseHistoryT from "../views/pub/teacher/CourseHistoryT.vue";
import CourseHistory from "../views/classroom/CourseHistory.vue";
import ActiveCheckResult from "../views/amusement/club/clubmanage/ActiveCheckResult.vue";
import ActiveCheck from "../views/amusement/club/clubmanage/ActiveCheck.vue";
import Anotice from "@/views/canteen/mall/Anotice";
import TeamAnnouce from "@/views/amusement/TeamAnnouce.vue";
import LetWeChat from "@/views/amusement/club/clubmanage/LetWeChat.vue";


const routes = [
    //////////////////公共登录//////////////////////
  {
    path:'/',
    name:'login',
    component: Login
  },
  /*学生首页登录成功后页面*/
  {
    path: '/home',
    name: 'Home',
    component: Home,
  },
  /*管理员登登录成功后的页面*/
  {
    path:'/admin',
    component: AdminIndex,
    children: [
      {
        path: '/admin/index',
        component: Index
      },
      {
        path:'/admin/teacher',
        component: Teacher,
      },
      {
        path: '/admin/student',
        component: Student
      },
      {
        path: '/admin/pay',
        component: Pay,
      },
      {
        path: '/admin/goods',
        component: Goods
      },
      {
        path: '/admin/profile',
        component:Profile,
      },
      {
        path: '/admin/course',
        component: CourseManage,
      },
      {
        path:'/admin/dept',
        component:Dept
      },
      {
        path:'/admin/dormitory',
        component: Dormitory
      },
      {
        path:'/admin/arrive',
        component: Arrival
      },
      {
        path:'/admin/notice',
        component:Notice
      },
      {
        path: '/admin/mall',
        component: Amall
      },
      {
        path: '/admin/enroll',
        component: Enroll
      },
      {
        path: '/admin/dishes',
        component: Dishes
      },
      {
        path: '/admin/dishShelf',
        component: Adish
      },
      {
        path: '/admin/history',
        component: CourseH
      }

    ]
  },
  /*教师登陆后看到的页面*/
  {
    path:'/teacher',
    component: TeacherIndex,
    children: [
      {
        path:'/teacher/notice',
        component: NoticeT
      },
      {
        path:'/teacher/student',
        component: StudentT
      },
      {
        path:'/teacher/goods',
        component: GoodsT
      },
      {
        path:'/teacher/pay',
        component: PayT
      },
      {
        path: '/teacher/profile',
        component:Profile,
      },
      {
        path: '/teacher/course',
        component: CourseT
      },
      {
        path: '/teacher/attend',
        component: AttendT
      },
      {
        path: '/teacher/message',
        component: MessageT
      },
      {
        path:'/teacher/course/detail',
        component: DetailT
      },
      {
        path:'/teacher/add',
        component: AddNotice
      },
      {
        path: '/teacher/history',
        component: CourseHistoryT
      }
    ]

  },
  /*商家登陆后看到的页面*/
  {
    path: '/home/mall',
    component: mallindex,
    children: [{
      path: '/home/mall/canmall',
      component: Canmall
    },
      {
        path: '/home/mall/order',
        component: MallOrder
      },
      {
        path: '/home/mall/notice',
        component: MallNotice
      },
      {
        path: '/home/mall/my',
        component: MyMall
      },
      {
        path: '/home/mall/work',
        component: Work
      },
      {
        path: '/home/mall/websocket',
        component: Websocket
      },
      {
        path: '/home/mall/anotice',
        component: Anotice
      },
    ]},
    ///////////////四个模块////////////////
  /*进入食堂模块看到的页面*/
  {
    path: '/home/canteen',
    component: canteenindex,
    children: [
      {
        path: '/home/canteen/canhome',
        component: canHome
      },
      {
        path: '/home/canteen/candish',
        component: canDish
      },
      {
        path: '/home/canteen/cart',
        component: cart
      },
      {
        path: '/home/canteen/order',
        component: order
      },
      {
        path: '/home/canteen/public',
        component: cpublic
      },
      {
        path: '/home/canteen/my',
        component: Mycanteen
      },
      {
        path: '/home/canteen/settle',
        component: settlement
      },
      {
        path: '/home/canteen/address',
        component: Address
      },
      {
        path: '/home/canteen/addressdetail',
        component: AddressDetail
      },
    ]
  },
  /*进入课堂看到的页面*/
  {
    path: '/home/classroom',
    component: Classroom,
    children: [
      {
        path: '/home/classroom/index',
        component: ClassroomIndex
      },
      {
        path: '/home/classroom/sign',
        component: Sign
      },
      {
        path: '/home/classroom/choose',
        component: Choose
      },
      {
        path: '/home/classroom/course',
        component: Course
      },
      {
        path: '/home/classroom/message',
        component: Message
      },
      {
        path: '/home/classroom/detail',
        component: Detail
      },
      {
        path: '/home/classroom/history',
        component: CourseHistory
      }
    ]
  },
  /*进入迎新模块看到的页面*/
  {
    path:'/home/freshman',
    component: Freshman,
    children: [
      {
        path: '/home/freshman/stream',
        component: Stream,
      },
      {
        path: '/home/freshman/admissionNotice',
        component: AdmissionNotice,
      },
      {
        path: '/home/freshman/profile',
        component:Profile,
      },
      {
        path: '/home/freshman/map',
        component:Search,
      },
    ]
  },
    /*进入娱乐天地看到的页面*/
  {
    path: '/home',
    children:[
      {
        path: 'amusement',
        component: Amusement,
      }
    ]
  },
  {
    path: '/home/amusement',
    children:[
      {
        path: 'singhome',
        component:Singinghome
      },{
        path: 'dancehome',
        component:Dancehome
      },{
        path: 'sporthome',
        component:Sporthome
      },{
        path: 'showmsg',
        component: ShowUserMessage
      },{
        path: 'teamannounce',
        component: TeamAnnouce
      },{
        path: 'letwechat',
        component: LetWeChat
      }
    ]
  },
  {
    path: '/home/amusement/singhome',
    children: [
      {
        path: 'singclub1',
        component: Singclub1
      },
      {
        path: 'singclub2',
        component: Singclub2
      },
      {
        path: 'singclub3',
        component: Singclub3
      }
    ]
  },
  {
    path: '/home/amusement/dancehome',
    children: [
      {
        path: 'danceclub1',
        component: Danceclub1
      },
      {
        path: 'danceclub2',
        component: Danceclub2
      },
      {
        path: 'danceclub3',
        component: Danceclub3
      }
    ]
  },
  {
    path: '/home/amusement/sporthome',
    children: [
      {
        path: 'sportclub1',
        component: Sportclub1
      },
      {
        path: 'sportclub2',
        component: Sportclub2
      },
      {
        path: 'sportclub3',
        component: Sportclub3
      }
    ]
  },
  {
    path: '/home/amusement/clubmember',
    component: ClubMemberMain,
    children:[
      {
        path: 'watchmember',
        component:WatchMember
      },{
        path: 'signmember',
        component:SignMember
      },{
        path: 'watchnotice',
        component:WatchNotice
      },{
        path: 'managenotice',
        component: ManageNotice
      },{
        path: 'judgenotice',
        component: JudgeNotice
      },{
        path: 'activecheck',
        component: ActiveCheck
      },{
        path: 'activecheckresult',
        component: ActiveCheckResult
      }
    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
